package com.personal.test.common.java8;

import com.personal.test.common.domin.Person;

/**
 * @author linyh
 * @version 1.0
 * @email 1503386669@qq.com
 * @date 2020/11/4 15:04
 */

/**
 * Person工厂
 * @param <P>
 */
@FunctionalInterface
public interface PersonFactory<P extends Person> {
    P create(String firstName, String lastName);
}
